package com.icesoft.system.entity;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import com.gitee.sunchenbin.mybatis.actable.annotation.Column;
import com.gitee.sunchenbin.mybatis.actable.constants.MySqlTypeConstant;
import com.icesoft.framework.core.annotation.Entity;
import com.icesoft.framework.core.entity.BaseEntity;
import lombok.Getter;
import lombok.Setter;
import lombok.experimental.Accessors;

/**
 * 菜单
 *
 * @author ${author}
 * @date 230326
 */
@Getter
@Setter
@Accessors(chain = true)
@TableName("sys_menu")
@Entity(module = "system", describe = "菜单")
public class Menu extends BaseEntity {

	@TableField
	@Column(value = "name", comment = "名称", length = 255, type = MySqlTypeConstant.VARCHAR)
	private String name;

	@TableField
	@Column(value = "pid", comment = "父级Id", length = 40, type = MySqlTypeConstant.BIGINT)
	private Long pid;

	@TableField
	@Column(value = "sort", comment = "顺序", length = 40, type = MySqlTypeConstant.BIGINT)
	private int sort;

	@TableField
	@Column(value = "path", comment = "地址", length = 255, type = MySqlTypeConstant.VARCHAR)
	private String path;

	@TableField
	@Column(value = "is_show", comment = "是否显示", type = MySqlTypeConstant.BIT)
	private Boolean isShow;

	@TableField
	@Column(value = "icon", comment = "图标", length = 255, type = MySqlTypeConstant.VARCHAR)
	private String icon;

}
